package com.qys.livesMall.shop.dao;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qys.livesMall.app.user.model.vo.app.AppUserInfoTeamDetailVo;
import com.qys.livesMall.shop.modal.dto.shop.ShopQuery;
import com.qys.livesMall.shop.modal.dto.shop.shopBaseSettlementDay;
import com.qys.livesMall.shop.modal.entity.H2ShopBase;
import com.qys.livesMall.shop.modal.vo.ShopVO;

import java.util.List;

public interface H2ShopBaseDao extends IService<H2ShopBase> {

    H2ShopBase getByUserId(Long userId);

    Long queryShopBaseIdByUserId(Long userId);

    long getUserInviteShopCount(List<Long> userIds);

    H2ShopBase getByShopCode(Integer shopCode);

    List<H2ShopBase> getByShopName(String shopName);

    List<H2ShopBase> getByShopName(String shopName,String status,List<Long> userIds);

    boolean existByLevel(Integer levelId);


    List<Long> existByUserIds(List<Long> userIds);

    List<H2ShopBase> getShopByUserIds(List<Long> userIds);

    List<H2ShopBase> getAllShop();


    boolean setShopSettlementDay(shopBaseSettlementDay shopBaseSettlementDay);

    long getActiveShopCount(List<Long> userIds);

    List<Long> getShopIdByQuery(ShopQuery query);

    List<H2ShopBase> getByPage(Integer pageNum,Integer size);

    List<AppUserInfoTeamDetailVo> getShopbyids(Page<AppUserInfoTeamDetailVo> page, List<Long> shopids);

    List<H2ShopBase> getYesterday();
}
